package com.mall.order.dal.entitys;



import lombok.Data;



import java.math.BigDecimal;

import javax.persistence.*;



@Table(name = "tb_order_item")

@Data

public class OrderItem {
    @Id
    private String id;
    @Column(name = "item_id")
    private Long itemId; //商品id
    @Column(name = "order_id")
    private String orderId; //订单id
    private Integer num; //商品购买数量
    private String title; //商品标题
    private Double price; //商品购买数量
    @Column(name = "total_fee")
    private Double totalFee; //商品总金额
    @Column(name = "pic_path")
    private String picPath; //商品图片地址
    private Integer status;  //库存锁定状态 1库存已锁定 2库存已释放 3-库存减扣成功
}
